package com.hhl.nativeflutter

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.hhl.nativeflutter.flutter.FlutterMainActivity
import kotlinx.android.synthetic.main.activity_main.*

class MainActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
        flutter_btn.setOnClickListener {
            FlutterMainActivity.startFlutterPage(this, "/order_meal_index_page")
        }
        method_channel.setOnClickListener {
            FlutterMainActivity.startFlutterPage(this, "/battery_level_page")
        }
        learn.setOnClickListener {
            FlutterMainActivity.startFlutterPage(this, "/course_detail_page")
        }
    }
}